<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://qzone.qq.com/251303704/pagination" prefix="p" %>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>"/>
		<meta charset="utf-8" />
		<link rel="stylesheet" href="css/ShoppingMingXi.css?_<%=new Date().getTime() %>" />
		<title>Document</title>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript">
		$(function() {
			$("#ss").val(${type });
		});
		</script>
	</head>
	<style type="text/css">
		table {
		    border-collapse: separate;
		    width: 980px;
		}
		table tr{
			display: table-row;
		    vertical-align: inherit;
		    border-color: inherit;
		    width:980px;
		    line-height:45px;
		    background-image:url(images/Address/bg.jpg);
		}
		.neirong{
			width: 978px;
			height: 120px;
			margin-top: 20px;
		}
		.neirong div{
			float: left;
		}
		dl dt {
			float: left;
		}
		dl dd {
			padding-left: 80px;
			margin-top: 20px;
		}
		.page{
			margin-top:20px;
			float:right;
		}
		.page a{
			color:#000;
			text-decoration: none;
			padding:5px 10px;
			border:1px solid #eee;
			margin:0px 5px;
		}
		.page a:hover{
			color:#B81C22;
		}
		.page a.active{
			font-weight:bold;
			color:#fff;
			background-color:#B87354;
		}
		.page a:hover{
			cursor: default;	
		}
		.page a{
			color:#000;
		}
		.page  a:hover{
			cursor: default;	
		}
	 </style>
	<body>
			<div id="hezi">
			<form action="ShoppingMingXi.shtml" method="post" id="form1">
				<table cellspacing="0">
					<tr>
						<th>商品名称</th>
						<th>尺码</th>
						<th>数量</th>
						<th>总价</th>
					</tr>
				</table>
				
				<c:forEach items="${mxlist }" var="mx">
					<div class="neirong">
						<div style="width: 260px; margin-left: 80px;">
							<dl>
								<dt><img style="width: 60px;" src="${mx.img }"/></dt>
								<dd>${mx.name }</dd>
							</dl>
						</div>
						<div style="margin-left:132px; margin-top:40px; width:80px;">${mx.m_size }</div>
						<div style="margin-left:125px; margin-top:40px; width:60px;">${mx.m_num }</div>
						<div style="margin-left:115px; margin-top:40px; width:90px;">${mx.m_price }元</div>
					</div>
			  </c:forEach>
					 <div class="address">
							<div class="add"><span class="a">收货人:${mingXi.getOrders().getO_username() }</span><span class="b">电话:${mingXi.getOrders().getO_phone() }</span><span class="c">地址:${mingXi.getOrders().getO_ssxx() }</span></div>
					 </div>	
			  <p:page pageBean="${pageBean }"/>
			  </form>
			 
			</div>
			
	</body>
</html>
